package com.vincce.sport.mapper;

import java.util.List;
import java.util.Map;

import com.vincce.sport.core.MyBatisRepository;
import com.vincce.sport.entity.MatchTaskEntity;
import com.vincce.sport.entity.Page;
import com.vincce.sport.entity.PreliminaryContest;

@MyBatisRepository
public interface PreliminaryContestMapper {

	public Long insert(PreliminaryContest preliminaryContest);
	
	public Long update(PreliminaryContest preliminaryContest);
	
	public List<PreliminaryContest> findPreliminaryContestList(Map<String, Object> map);
	
	public PreliminaryContest findPreliminaryContestById(Long id);

	public Map findTeamByContestId(Long id);
	
	/**
	 * 比分管理列表
	 * @param page
	 * @return
	 */
	public List<PreliminaryContest> queryPreliminaryContest(Page<PreliminaryContest> page);
	
	public Long queryPreliminaryContestCount(Page<PreliminaryContest> page);

	public List<PreliminaryContest> queryDateGroupBy4Condition(Map map);

	public List<PreliminaryContest> queryPreliminaryBy4Condition(Map map);

	public List<MatchTaskEntity> queryPreliminaryTaskAll();

	public List<MatchTaskEntity> queryPreliminaryTaskAllBySeasonId(
			Map<String, Object> map);
}
